﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListView.aspx.cs" 
Inherits="SisLegal.Administrative.ListView"   MasterPageFile="~/Site.Master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <title>Administrativos</title>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>Administrativos</h5>
                    <div class="ibox-tools">
                        <a class="btn btn-primary btn-xs" type="button" href="<%= Page.ResolveClientUrl("~/Administrative/NewForm.aspx") %>">
                            <i class="fa fa-plus"></i> Nuevo</a>                       
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="table-responsive">
                        <asp:Repeater ID="RstTable" runat="server">
                            <HeaderTemplate>
                                <table class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th>
                                                ID
                                            </th>
                                            <th>
                                                Nro Expediente
                                            </th>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%#Eval("ID") %>
                                    </td>
                                    <td>
                                        <a href="<%= Page.ResolveClientUrl("~/ExpedientCiviles/DisplayForm.aspx?id=") %><%#Eval("ID") %>"><%#Eval("NroExpedient")%></a>
                                    </td>                                    
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                    <asp:Repeater ID="Repeater_Paginate" runat="server" OnItemCommand="Paginate_ItemCommand">
                        <HeaderTemplate>
                            <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                <ul class="pagination">
                        </HeaderTemplate>
                        <ItemTemplate>
                           <li class="paginate_button " aria-controls="DataTables_Table_<%#Eval("NumPage")%>" tabindex="<%#Eval("NumPage")%>">                           
                               <asp:LinkButton ID="LinkButton1" runat="server"  CommandName="Paginate" CommandArgument='<%#Eval("NumPage")%>' ><%#Eval("NumPage")%></asp:LinkButton>
                                </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            </ul></div>
                        </FooterTemplate>
                    </asp:Repeater>                    
                </div>
            </div>
        </div>
    </div>
</asp:Content>
